// *,
// *:before,
// *:after {
//   box-sizing: border-box;
// }
html {
  height: 100%;
}
body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.15;
  color: #303133;
  background-color: #fff;
  height: 100%;
}
a {
  color: mix(#fff, $--color-primary, 20%);
  text-decoration: none;
  &:focus,
  &:hover {
    color: $--color-primary;
    text-decoration: underline;
  }
}
img {
  vertical-align: middle;
}

.margin-right-10{
  margin-right: 10px;
}

/* Utils
------------------------------ */
.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}
.clearfix:after {
  clear: both;
}


/* Animation
------------------------------ */
.fade-enter-active,
.fade-leave-active {
  transition: opacity .5s;
}
.fade-enter,
.fade-leave-to {
  opacity: 0;
}

/* fade-transform */
.fade-transform-leave-active,
.fade-transform-enter-active {
  transition: all 0.5s;
}

.fade-transform-enter {
  opacity: 0;
  transform: translateX(-30px);
}

.fade-transform-leave-to {
  opacity: 0;
  transform: translateX(30px);
}

/* Reset element-ui
------------------------------ */
.no_menu .site-wrapper { // TODO 屏蔽菜单
  height: calc( 100% - 80px );
  margin-top: 80px;
}
.site-wrapper {
  .el-pagination {
    text-align: right;
  }
}

.app-wrapper {
  height: 100%;
}

.no_menu .el-notification{
  margin-top: 80px;
}

.no_menu .el-message{
  margin-top: 80px;
}

/* Layout
------------------------------ */
.site-wrapper {
  position: relative;
  min-width: 736px;
}
.min300 {
  min-width: 300px;
}

/* Sidebar fold
------------------------------ */
.site-sidebar--fold {
  .site-navbar__header,
  .site-navbar__brand,
  .site-sidebar,
  .site-sidebar__inner,
  .el-menu.site-sidebar__menu {
    width: 64px;
  }
  .site-navbar__body,
  .site-content__wrapper {
    margin-left: 64px;
  }
  .site-navbar__brand {
    &-lg {
      display: none;
    }
    &-mini {
      display: inline-block;
    }
  }
  .site-sidebar,
  .site-sidebar__inner {
    overflow: initial;
  }
  .site-sidebar__menu-icon {
    margin-right: 0;
    font-size: 20px;
  }
  .site-content--tabs > .el-tabs > .el-tabs__header {
    left: 64px;
  }
}
.site-content {
  height: 100%;
  box-sizing: border-box;
  .el-tabs {
    height: 100%;
  }
  .el-tabs__content {
    height: 100%;
    .el-card {
      height: 100%;
    }
  }
}
// animation
.site-navbar__header,
.site-navbar__brand,
.site-navbar__body,
.site-sidebar,
.site-sidebar__inner,
.site-sidebar__menu.el-menu,
.site-sidebar__menu-icon,
.site-content__wrapper,
.site-content--tabs > .el-tabs .el-tabs__header {
  transition: inline-block .3s, left .3s, width .3s, margin-left .3s, font-size .3s;
}


/* Navbar
------------------------------ */
.no_menu .site-navbar{ // TODO 屏蔽菜单
  display: none;
}
.site-navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  height: 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
  background-color: $navbar--background-color;

  &--inverse {
    .site-navbar__body {
      background-color: #aa1111;
    }
    .el-menu {
      > .el-menu-item,
      > .el-submenu > .el-submenu__title {
        color: #fff;
        &:focus,
        &:hover {
          color: #fff;
          background-color: mix(#000, $navbar--background-color, 15%);
        }
      }
      > .el-menu-item.is-active,
      > .el-submenu.is-active > .el-submenu__title {
        border-bottom-color: mix(#fff, $navbar--background-color, 85%);
      }
      .el-menu-item i,
      .el-submenu__title i,
      .el-dropdown {
        color: #fff;
      }
    }
    .el-menu--popup-bottom-start {
      background-color: $navbar--background-color;
    }
  }

  &__header {
    position: relative;
    float: left;
    width: 180px;
    height: 50px;
    overflow: hidden;
  }
  &__brand {
    display: table-cell;
    vertical-align: middle;
    width: 180px;
    height: 50px;
    margin: 0;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;

    &-lg,
    &-mini {
      margin: 0 5px;
      color: #fff;
      &:focus,
      &:hover {
        color: #fff;
        text-decoration: none;
      }
    }
    &-mini {
      display: none;
    }
  }
  &__switch {
    font-size: 18px;
    border-bottom: none !important;
  }
  &__avatar {
    border-bottom: none !important;
    * {
      vertical-align: inherit;
    }
    .el-dropdown-link {
      > img {
        width: 36px;
        height: auto;
        margin-right: 5px;
        border-radius: 100%;
        vertical-align: middle;
      }
    }
  }
  &__body {
    position: relative;
    margin-left: 180px;
    padding-right: 15px;
    background-color: #fff;
  }
  &__menu {
    float: left;
    background-color: transparent;
    border-bottom: 0;

    &--right {
      float: right;
    }
    a:focus,
    a:hover {
      text-decoration: none;
    }
    .el-menu-item,
    .el-submenu > .el-submenu__title {
      height: 50px;
      line-height: 50px;
    }
    .el-submenu > .el-menu {
      top: 55px;
    }
    .el-badge {
      display: inline;
      z-index: 2;
      &__content {
        line-height: 16px;
      }
    }
  }
}


/* Sidebar
------------------------------ */
.no_menu .site-sidebar{ // TODO 屏蔽菜单
  display: none;
}
.site-sidebar {
  position: fixed;
  top: 50px;
  left: 0;
  bottom: 0;
  z-index: 1020;
  width: 180px;
  overflow: hidden;

  &--dark,
  &--dark-popper {
    background-color: $sidebar--background-color-dark;
    .site-sidebar__menu.el-menu,
    > .el-menu--popup {
      background-color: $sidebar--background-color-dark;
      .el-menu-item,
      .el-submenu > .el-submenu__title {
        color: $sidebar--color-text-dark;
        &:focus,
        &:hover {
          color: mix(#fff, $sidebar--color-text-dark, 50%);
          background-color: mix(#fff, $sidebar--background-color-dark, 2.5%);
        }
      }
      .el-menu,
      .el-submenu.is-opened {
        background-color: mix(#000, $sidebar--background-color-dark, 15%);
      }
      .el-menu-item.is-active,
      .el-submenu.is-active > .el-submenu__title {
        color: mix(#fff, $sidebar--color-text-dark, 80%);
      }
    }
  }
  &__inner {
    position: relative;
    z-index: 1;
    width: 185px;
    height: 100%;
    padding-bottom: 15px;
    overflow-y: scroll;
  }
  &__menu.el-menu {
    width: 180px;
    border-right: 0;
  }
  &__menu-icon {
    width: 24px;
    margin-right: 5px;
    text-align: center;
    font-size: 16px;
    color: inherit !important;
  }
}

.width100 {
  width: 100%;
}

/* Content
------------------------------ */
.no_menu .site-content{ // TODO 屏蔽菜单
  padding: 0;
  &__wrapper {
    padding-top: 0; // TODO 屏蔽菜单
    margin-left: 0; // TODO 屏蔽菜单
  }
  &--tabs {
    padding: 0 0 0; // TODO 屏蔽菜单
  }
  > .el-tabs {
    > .el-tabs__header {
      display: none; // TODO 屏蔽菜单
    }
    > .el-tabs__content {
      > .site-tabs__tools {
        display: none; // TODO 屏蔽菜单
      }
    }
  }
}
.site-content {
  position: relative;
  padding: 15px;

  &__wrapper {
    position: relative;
    padding-top: 50px;
    margin-left: 180px;
    min-height: 100%;
    background: $content--background-color;
  }
  &--tabs {
    padding: 45px 0 0;
  }
  > .el-tabs {
    > .el-tabs__header {
      position: fixed;
      top: 50px;
      left: 180px;
      right: 0;
      z-index: 930;
      padding: 0 55px 0 15px;
      box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .12), 0 0 6px 0 rgba(0, 0, 0, .04);
      background-color: #fff;
      > .el-tabs__nav-wrap {
        margin-bottom: 0;
        &:after {
          display: none;
        }
      }
    }
    > .el-tabs__content {
      padding: 5px 5px 10px 5px;
      box-sizing: border-box;
      > .site-tabs__tools {
        position: fixed;
        top: 50px;
        right: 0;
        z-index: 931;
        height: 40px;
        padding: 0 12px;
        font-size: 16px;
        line-height: 40px;
        background-color: $content--background-color;
        cursor: pointer;
        .el-icon--right {
          margin-left: 0;
        }
      }
    }
  }
}

// 自定义详情表格样式
.rf-detail-show{
  .item{
    display: flex;
    height: 38px;
    align-items: center;
    &:nth-child(even){
      background: #e6effb;
    }
    &:hover{
      background: #66b1ff;
    }
    .item-content{
      flex-grow: 1;
    }
    .item-label{
      display:inline-block;
      min-width: 110px;
      text-align: center;
    }
  }
}

.rf-detail-dialog{
  .el-dialog{
    width: 45%;
    min-width: 700px;
  }
}

// 表单表格弹框
.rf-form-dialog{
  .el-dialog {
    width: 24%!important;
    min-width: 430px;
    .el-cascader, .rf-select-item, .el-select, .el-input-number {
      width: 100%;
    }
  }
}

.rf-form-col-dialog{
  .el-dialog {
    width: 50%;
    min-width: 900px;

    .el-input {
      width: 250px;
    }

    .el-input__inner {
      text-align: left;
    }

    .date-range .el-input__inner {
      width: 250px;
    }
  }
}

/*覆盖element样式*/
.el-tabs__item.is-active {
  font-size: 1.2em;
}

// .el-form-item__content
// {
//   padding: 0 20px;
// }
.el-input.is-disabled .el-input__inner {
  background-color: #fff;
  color: #000 ;
}


.el-textarea.is-disabled .el-textarea__inner {
  background-color: #fff;
  color: #000;
}

// 上传图片样式
.el-upload--picture-card {
  width: 100px;
  height: 100px;
  line-height: 110px;
}

.el-upload-list--picture-card {
  .el-upload-list__item {
    width: 100px;
    height: 100px;
  }
}

.disabled .el-upload--picture-card {
  display: none;
}

.el-collapse-item__header {
  display: flex;
  align-items: center;
}
.el-collapse-item__arrow {
  margin: 0 8px 0 auto;
  transition: transform .3s;
  font-weight: 300;
}

// 两列布局
.container-content {
  padding-bottom: 0;
  box-sizing: border-box;


  &-left {
    border-right: 1px solid #dedede;
    padding-right: 20px;
  }

  &-right {
    width: 100%;
    padding-left: 20px;
    overflow: auto;
  }

  &-single {
    width: 100%;
  }

  .operation {
    margin-bottom: 20px;
  }
}

// 每个页面的搜索框
.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

.data-form {
  padding: 10px 16px;
}

//
.full-width {
  width: 100%;
}

.tip-txt-red {
  color: red;
}

.padding-20 {
  padding: 20px;
}

.tableTips {
  height: 39px;
  padding: 0 15px;
  background-color: #e6f7ff;
  border: 1px solid #bae7ff;
  box-sizing: border-box;
  display: flex;align-items: center;
  margin-bottom: 10px;
  .icon {
    color: #0890ea;
    margin-right: 5px;
  }
}

// 新增弹框大小
.custom-form-dialog {
  .el-dialog {
    width: 25%;
    min-width: 430px;
  }
}

#nprogress .bar {
  background: #8ebcec !important; //自定义颜色
  height: 3px!important;
}

table {
  border-color: #ebeef5;
  th {
    padding: 5px;
  }
  td {
    padding: 5px;
    text-align: center;
  }
}
.el-card__body {
  height: 100%;
}
.el-cascader-menu {
  overflow-x: hidden;
  .el-cascader-node {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 30px 0 20px;
    height: 34px;
    line-height: 34px;
    outline: none;
  }
  .el-cascader-node:not(.is-disabled) {
    cursor: pointer;
  }
  .el-cascader-node:not(.is-disabled):focus, .el-cascader-node:not(.is-disabled):hover {
    background: #f5f7fa;
  }
  .el-cascader-node__postfix {
    position: absolute;
    right: 10px;
  }
  .el-cascader-node.in-active-path, .el-cascader-node.is-active, .el-cascader-node.is-selectable.in-checked-path {
    color: #409eff;
    font-weight: 700;
  }
}

.el-radio__input.is-checked .el-radio__inner {
  /*border-color: #fd4a46;
  background: #fd4a46;*/
}
.el-dialog__header {
  padding-top: 13px;
  .el-dialog__headerbtn {
    top: 15px;
  }
}

.page_container {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  .tableBox {
    flex: 1;
    position: relative;
    .el-table {
      height: 100%;
      position: absolute;
      left: 0;
      top: 0;
    }
  }
  >.handleBox {
    margin-bottom: 10px;
  }
}

.el-dialog__body {
  padding: 20px;
}

.el-loading-mask {
  z-index: 9999;
}

.el-tooltip__popper {
  max-width: 500px;
  max-height: 35px;
  line-height: 20px;
  padding: 7px 10px;
  font-size: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.colorRed {
  color: #e66613;
}

::-webkit-scrollbar {
  width: 4px;
  height: 3px;
  background-color:#F5F5F5;
}
::-webkit-scrollbar-thumb {
  -webkit-box-shadow: inset 0 0 5px rgb(100, 100, 100);
  box-shadow: inset 0 0 5px rgb(100, 100, 100);
  border-radius: 2px;
  background: #999;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow:inset 0 0 6px rgb(100, 100, 100);
  box-shadow: inset 0 0 1px rgb(100, 100, 100);
  border-radius: 0;
  background: #fff;
}

.el-table__body-wrapper{
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: #F5F5F5;
  }

  &::-webkit-scrollbar-thumb {
    -webkit-box-shadow: inset 0 0 8px rgb(100, 100, 100);
    box-shadow: inset 0 0 8px rgb(100, 100, 100);
    border-radius: 5px;
    background: #999;
  }

  ::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 8px rgb(100, 100, 100);
    box-shadow: inset 0 0 3px rgb(100, 100, 100);
    border-radius: 0;
    background: #fff;
  }
}

.el-carousel .el-carousel__indicators--outside {
  position: absolute;
  button {
    background-color: #3E8EF7;
    height: 4px;
    border-radius: 2px;
  }
}
.el-carousel__indicators {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  .el-carousel__indicator {
    display: inline-block;
    padding: 12px 4px;
    background-color: transparent;
    cursor: pointer;
    .button {
      background-color: #3E8EF7;
    }
  }
}
